import request from '@/utils/request';

export default {
    // 获取三级分类
    reqCategory1st(){
      return request.get('/category/st1')
    },
    // 二级分类
    reqCategory2nd(id){
      return request.get(`/category/nd2/${id}`)
    },
    // 三级
    reqCategory3rd(id){
      return request.get(`/category/rd3/${id}`)
    },
    // 获取分类属性
    reqCategoryAttribute(id){
      // return request.get('/categoryAttribute',{query:{id}})
      return request.get('/categoryAttribute',{params:{id}})
    },
    // 更新所有产品属性值
    reqUpdateAttribute(attri){
      return request.post('/updateAttribute',attri)
    },
    // 删除分类属性
    reqDelAttribute(id){
      return request.post('/rmAttribute',id)
    }

}